Added submitForm function.