Since you are using the Dreamweaver database insert server behavior, the form action automatically submits to itself. This means that the form validation needs to be placed on the same page as the form itself. You have the form validation on the payment success page, which is redirected to after the database has already been inserted into and won't contain a form submit at all.