added validator class