We all got bad times in our life and you'll just have to deal with them. Feeling down effects your game, game gets worse and leads to feeling even worse. It's a vicious circle. Try to not let stupid things get you down, getting rejected rocks and you should laugh about it. Try to see failure as a new opportunity to do better in the future.
You should start seeing the positive side of life again, do fun things, listen to your favourite music etc. Create a positive vibe and it'll come back to you I'm sure.
Now that's $5 for private amature psychology consultancy

But seriously, don't let bad things get to you, how hard it may sound.