updated the text of the error messages