Fixes form submission