updating application to store credentials in config.json