Added Yii - model rules.