Moving the submit handler so that password reset email works.