結果 : how to submit form after validation in javascript