- set error messages on error