added calculation of the total function to cart
also, fixed login.html
more cart fixes