Parse login method