Added validation and fixed some issues on the checkout page