Abraham Lincoln, one of America's greatest Presidents lost, failed, at multiple elections before being elected to the most powerful office in our country, and he ended up preserving the Union. This Union would be instrumental in defeating Hitler and the Nazi's in WWII
Albert Einstein was a poor student, and struggled, if not outright failed as his school would, and became one of the greatest physicist the world has ever known.
Failure cannot be measured by the moment. It can only be seen as a single step on the path of success.