Creates ValidationError exception and adds validate method on widget.
Adds required and pattern validation to input widget.
Merge pull request #1 from adrien-f/feature/validations

Validations