Modularize validations.

Closes #1
Merge pull request #2 from neighborland/modularize

Modularize validations.