The button outside the form submits loginForm because form="loginForm" matches the form’s id.
loginForm
form="loginForm"
id
Lines: 0 | Characters: 0