added email validation and email validation testing