adding multiples of the same item to lineitems works; empty cart works; error handling added