Refactoring emailValidator