setCustomValidity

Sets a custom validity message for the underlying element.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity