validation

Implementation of validation idea from #3 
same typo