convert p_login to member function
convert p_join_info into a member function
converty p_mode to member function