adding the error messages