login method documentation