Made sure the submit function actually submits the form