validation class and service