Adding some validation rules for models