check for email type