Make a list of your accomplishments. Refer to it whenever you need a boost.
"Don't cry because it's over, smile because it happened."
Dr. Seuss
Dr. Seuss
If you had allowed failure to deter you, you'd still be crawling on all fours.