updated to parse username and password from settings.json