Automatic model validation rules.