onsubmit fix