some validation
Merge pull request #3 from willtp87/7.x

some validation