Fix email validation issue