registration handles invalid email address