updating get credentials method