added check for auth and basic_creds equality