Fix the confirmation emails being sent on every click in the confirmation form.

fixes #401