updating login method