Use HTML 5 validation instead.