error messages correctly display