added validation for the email on the edit profile page