basic user input validation
Merge pull request #4 from kiraboshi/i2

basic user input validation