I remade the validations and the delimiter error is gone. However I have another question for you so thanks for reading.
It appears that even after the validations are set and working correctly, when I click the checkout button on the checkout page with no form entries made, a record is still created on my orders table. So the checkout and confirm page validations are working, but the page gets submitted to my database even with no fields filled out. Any suggestions for preventing this?