create validation class