misc fixes to the login
Merge branch 'master' of git://github.com/Mihai-P/yii2-core