fixed form bug

bugfix for form submission