Simple login and register using Yii