added email validation