Class format class validate