added login page and mongo db support