form for adding categories works correctly