updates login method