login event for example socket server.