Improve form handling in customer profile and cart views.