trying to display error messages