added how the valadate class should work