Better handling of login page and form field detection