replace 2 error messages with keys