fix so not possible to submit form with invalid email address