only validate subcategoryname when createSubcategory button is clicked