I have 2 forms on a single page, one is a log in form and the other a register form. Both have a password field but if I submit the register form, with an error (i.e. empty name field), it highlights the password field on the login form as an error. This is regardless of whether the password field on the register form is valid or not. Rather than posting all my JS, at this stage, I’m interested to see if anyone else has experienced this or what else I could look for? I’ve checked there are no id values clashing and that the forms have proper open and close tags but I can’t see any reason why the other forms validation is being triggered. It also only appears to apply to the password field and not, for example, the email field.
Site can be found at developer dot acleddata dot com