login and join with socket