add error handling for invalid cart and improve cart display