error messages were not showing well