display error messages for validations