Extract function to validate email address argument