update setCredentials