updated schema validation