Use login method for autologin