Refactored valid EmailAddress check.