Add support for model validations