Fix for form being submitted multiple times