Changed schema validation method