added length limits on inputs
Merge pull request #53 from catlag/master

added length limits on inputs