using ng-switch on login/logout