How to avoid doubt and dejection in following the path of God?

How to avoid doubt and dejection in following the path of God?