form submission bug fix