Add validator on the model level