use HTML5 native pattern checks