Instead could we just change the controller via routeprovider and call the loginCtrl as needed?