It's important to keep the right attitude and perspective. The biggest step in that is to surround yourself with people that are like you are. No matter your current state, if you routinely have positive messages from those around you, it will rub off onto you. The likewise is also true. Frequently hearing negativity from those around you will ultimately take it's toll on your resolve. Be mindful of the company you're keeping. Everyone doesn't need to be in your inner circle.
Never give up, stay the course, and when you're discouraged, remember the story of "The Tortoise and the Hare" to keep you going. It's okay if you're not like the hare. In fact, that's best. It's the tortoise, slow and steady, that won the race!