The custom validation js that AI wrote for this username field works like a charm. It is always outputting the boolean correctly.
However, the main “isValid” field of the form data does not match up.
cv true → isValid = undefined
cv false → isValid = true
Thank you very much for an advice on where to check further!