added login page and fixed mongo setup