Update model-validator.js