added model validations