implemented user login

thanks to yii2 blog2.0 demo