Fixes to LoginCtrl