Fix $scope.user definition

Fix $scope.user definition