Allow user to override checkValidity