add login method, fix bot issue