New validator class.