fix duplicate form submission