add validation
update spec
Merge pull request #27 from robinhood205/f/validation

add validation