Adding validation to name and categories to resources