finished login method