updated the error to email.