adds model validations