added some error checking in BidManager and OrderManager classes