added error messages for update email