form validation for addCategory