finish the cart with validation