Refactor email validation and associated tests