plugin login to socket