It looks like you've applied server validations to the page. The server validations should be applied to the page that the action is pointing to. I'm not sure why the checkout page is redirecting to the index page in your case though:
action="../../index.php?id_sec=55"
If you apply client side validations then you apply them to the page that the form is on.