Moved socket login out of peerjs