Provided js validation on add category action