Failure leads to a decrease in motivation only when it is accepted as failure. Failure leads students to improve when they see it is a stepping stone on the road to success.
Success, Failure