add login method