little refactor
changed to data-valid-required and data-valid-pattern.  fixes #6