add error message in update profile and send email upon successful update