Updated comments in $scope.login()