Created abstract validation class