Created validate class