correctly select login form for submission