Udpate loginCtrl and menuCtrl.                    Refirect for login and logout