title: how to remove preventDefault() from submit but while the condition is true in JS
body: <p>The user validation won't work if remove   e.preventDefault() from submit button how can i solve this <a href="https://i.stack.imgur.com/rZ6v3.png" rel="nofollow noreferrer">enter image description here</a></p>