fixed login granting auth token with incorrect username and password

The $scope.login method was setting $rootScope.loggedInUser to true every time it was called, regardless of whether the login info was correct. I fixed this by moving that line inside the success callback from userFactory.login.