Add global option for turning HTML5 validation on and off.