Fixed form submission bug