Status of challenge 1 is updated only if the form has been submitted

In the first challenge a new attempt is added each time the *Send email* page is loaded.
I guess it is an error. This pull request corrects it.