onsubmit should work like onclick