Change the way credentials are loaded