test for LoginCtrl