fixed validation
Merge pull request #70 from cosmingrigore/master

fixed validation