extended error handling in members index
added authentication for mongodb