added email validation in edit