add checking userId for proceed to disconnect