<input type="text" name="password" oninvalid="this.setCustomValidity('XXX');" required>
<
input
type
=
"text"
name
"password"
oninvalid
"this.setCustomValidity('XXX');"
required>