Add validation
Fixed input validation
Merge pull request #404 from jidel/issue#381-category_name

Issue#381 category name