Add a little validation
Merge pull request #2 from grampajoe/validation

Add a little validation