fixed validation
Merge pull request #14 from VladislavPovedyuk/models_validation

fixed validation