I cant access this error message in ejs.if i use locals.error in ejs after reloading the form, form getting submitted automatically even catching the error my usersignup function is running automatically.if i use only error it says error is not defined.[enter image description here](https://i.sstatic.net/fzYrIz06.png)
i sent {error : error.message } and tried locals.error in ejs. after that i submit the form and reload the form its getting submitted automatically. everytime i reload the page.
Siddharam Sanamani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.