better logging if schema validation fails