added more validation for checkout