No matter how difficult your life gets, what you loose, or what people think of you, the only thing that matters, is what Allah has in store for you. This world is transitory, and those who strive, shall be rewarded. So don't let other people discourage you!
But as for one who had repented, believed, and done righteousness, it is promised by Allah that he will be among the successful. [Qur'an 28:67]