ah, i see. it used later because it involves some process except validation - login process by Yii, and sometimes it does not respond in needed time. While the above one only involves simple validation check as you see.