added the item counter for the cart, also redirect to root url if request invalid cart