display and remove error messages