Better handling of login page and form field detection

There will always be some amount of coupling required to the specifics of Apple's login page (how to detect when a login form is presented).

Rather than search for specific field names, this approach looks at the URL to see if it contains "login". If so, it grabs the first form (which will invariably be the login form), fills in the "text" type field with the login email, and fills in the "password" type field with the password.