revised validation
Merge pull request #13 from PAUCHOU/kevin2

revised validation