simplified update cloud credentials function