fix sign in/out and tagsinput $scope.$apply