add validatir class.