Validation.
Merge pull request #1 from DSnopov/master

Validation.