updating credentials