Modify code so credentials are secret