modify login, adding some socket io handlers to player.