create simple validation Class