validation class