The validation code works but when a field fails validation, all input fields get cleared.
The user will have to re-enter all the input values again in order to add to cart.
Is there a way around this?
I have 10 input fields making it unpleasant for the user experience to re-enter.