Added validation to editing category panel @tmmurcko helped