add validation method
Merge pull request #4 from paultgibbons/scrub

add validation method