update login method