swap order of the arguments in credentialValidationCallback