added check for email