login working with socket.io