add validate script

Closes #8