validate order, update inventory