added form validation to shopping cart