add validator for schema class