Fix bug in mongo_connections.js and dashboard.html session validation