updating create credentials method