Move RegExp compiles out of function.
Validate 'format': 'email' with RegExp.