initialized $scope.error