fix email validation on registration