add mongodb and basic auth and registration