def METHOD_NAME(self) -> dict[str, Any] | None:
    cd = self.cleaned_data
    if cd.get("host") and cd.get("key"):
        client = RedmineClient(cd["host"], cd["key"])
        try:
            client.get_projects()
        except Exception:
            raise forms.ValidationError("There was an issue authenticating with Redmine")
    return cd