More resistant login form detection

Had some issues with multiple login forms on the same page,
e.g. for social login, or with duplicated hidden login forms
in the header.