Fixed bug in validation for new category name