LocalStorage has been removed, this is code from before that change.  Switched to $scope.user