Created validation class