adds quantity field to line_items, handles nonexistant cart error