added email validator to edit user