fixed 500 error

changed instances of $scope.authResult to $rootScope.authResult