better id validation
Merge pull request #5 from chrissphinx/master

better id validation