fixed login not fixed close socket