validate interface &struct