updating credentials on init