socket io join room and check credential on join room