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