If-then validation rules on Yii2 Framework using core validators