Hook up client side form validation and submission