fixed project schema validation function