Make login work with the new login form