FYI, if your login page has code that identifies the userid and possword form with a form name, like this:
then use this:
However, I seldom seem to find login forms with the "name=" label. In that case, use the form's numerical index, like this:
You can count the forms (numerical index starts at 0) or just increase until you find the right one.