fixed form submission bug