Just remember how disappointed you were and turn it into motivation for doing better next time. When you go up again and nail all of it, not only will you feel better but your instructor will be impressed you managed to turn it all around.
Also speak to your instructor, they can probably see why you are making these mistakes.