rename function Model.setValidation