form validation to categories. add new ctegory and delete category