only show the validation errors if the controller is not pages