added check to make sure that valid routes are added to websocket router