displaying validation errors, in both class and error views correctly