Added support for mongo db and users login