add email validation and test