$scope.demand implemented to block invalid states