set credentials on init