function validatePasswordLength(value: string, _allValues: PasswordConfirmFormValues, props: PasswordConfirmFormProps) {
    if (value.length < props.minimumPasswordLength || value.length > props.maximumPasswordLength) {
        return props.passwordLengthErrorLabel;
    }
    return undefined;