make sure inputs a valid

change from making sure input was not empty, to making sure input is
valid
Merge pull request #6 from cmd430/master

make sure inputs are actually valid.