Gets a ValidityState object that contains detailed information about the validity states of the element.