validate categories and add styles