added login form detection/sorting