added check_login and chat_client_login